import request from "@/api/axios";
//登录
export function Login(params: any): Promise<any> {

    return request({
        url: '/CustomerLogin',
        method: 'get',
        params: {
            UserName: params.username,
            UserPwd: params.password
        }
    })
}
//查询
export function getroomtype(): Promise<any> {

    return request({
        url: '/api/app/room-type/select',
        method: 'get',

    })
}
//获取房型
export function getroomtypes(params: any): Promise<any> {

    return request({
        url: '/GetSelectAsyncid',
        method: 'get',
        params: {
            roomTypeId: params,
        }
    })
}
//提交订单
export function InsertReservations(params: any): Promise<any> {
debugger;
    return request({
        url: '/InsertReservations',
        method: 'post',
        data: params
    })
}
